I've had a problem with my recent job and wanted to write it down, and the scenario is this:
From the above figure can be seen, the user through Client access is LVS VIP, VIP back-end Mount Realserver is Nginx server. Client can be a browser or a
1. The need for TCP keepalive1) Many firewalls are automatically closed for idle sockets2) for non-normal disconnection, the server is not able to detect. In order to reclaim resources, a detection mechanism must be provided.2. Factors that cause
Why should there be keepalive?Before we talk about KeepAlive, we first understand the simple TCP knowledge (knowledge is very simple, master directly ignore). The first thing to be clear is that there is no "request" in the TCP layer, and it is
1. What is a keepalive timer? [1] There is no data stream on an idle (idle) TCP connection. Many beginners of TCP/IP are surprised at this. That is to say, if no process at both ends of the TCP connection sends data to the other end, there is no
Using the TCP/C mode software, the connection between the two sides in the connection idle state, if either side of the accidental crash, when the machine, network cable disconnect or router failure, the other side can not know that the TCP
Using the C/S mode software with TCP connection, if either side crashes unexpectedly, when the machine, the network cable disconnects or the router fails, the other party cannot know that the TCP connection has been invalidated unless it continues
TCP Keepalive HOWTO
Prev
Next
3. Using TCP keepalive under LinuxLinux has built-in support for keepalive. You need to enable TCP/IP networking in order to use it. You also need PROCFS support and sysctl
The C/S software of TCP connection is used. When both parties are idle, if either party unexpectedly crashes, when the machine or network cable is disconnected or the router fails, the other party cannot know that the TCP connection has expired,
Linux has built-in support for keepalive. You need to enable TCP/IP networking in order to use it. You also need PROCFS support and sysctl support to being able to configure the kernel parameters at runtime .The procedures involving keepalive use
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.